﻿using Core.Framework.Model.WebSockets;
using Core.Framework.Util;
using Core.IBusiness.IPushModule;
using Core.IBusiness.IPushModule.Model;
using Core.IBusiness.ISocketModule;
using System;

namespace Core.Business.PushModule
{
    /// <summary>
    /// 文章
    /// </summary>
    public class Article : IArticlePush
    {
        Utils utils;

        public Article(IQueue queue)
        {
            utils = new Utils(queue);
        }

        public void CommentReplyStar(CommentReplyStarModel commentReplyStar) => utils.PublishHelper(commentReplyStar);

        public void CommentStar(CommentStarModel commentStar) => utils.PublishHelper(commentStar);

        public void InfoComment(InfoCommentModel infoComment) => utils.PublishHelper(infoComment);

        public void InfoReplyComment(InfoReplyCommentModel infoReplyComment) => utils.PublishHelper(infoReplyComment);

        public void InfoStar(InfoStarModel infoStar) => utils.PublishHelper(infoStar);

        public void InfoWatch(InfoWatchModel infoWatch) => utils.PublishHelper(infoWatch);
    }
}
